import { createApp } from 'vue'
// import './style.css'
import App from './App.vue'
// 导入路由
import router from './router/index'
//引入element plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

 //使用路由
const app = createApp(App);
 app.use(ElementPlus).use(router).mount('#app')
 //全局注册图标组件
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component)
}
// createApp(App).mount('#app')
